package com.example.spring_leran1.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
//代表类变成控制器，可接收客户端请求
public class LearnController {
    @RequestMapping(value = "/hello",method = RequestMethod.GET)//默认是get方法
    public String hello(String nickname) {
        return "hello "+nickname;
    }/**/
}
